package com.wh.codedemon.datastructure;

public class Test {
        public static void main(String[] args) {

            CycleSingleLinkList cycleSingleLinkList = new CycleSingleLinkList();
            for (int i = 1; i <= 5; i++) {
                cycleSingleLinkList.add(new CycleSingleLinkList.Node(i));
            }
            cycleSingleLinkList.show();
            cycleSingleLinkList.josephus(2);
        }
    }